html {
  background-color: #888;
}

#root {
  &::after {
    content: '';
    position: fixed;
    z-index: 2147483647;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    background-color: #888;
    transition: background-color 0.3s;
    opacity: 0; // for initial hardware acceleration
    pointer-events: none;
  }

  &.saladict-theme-dark::after {
    background-color: #000;
    opacity: 1;
  }

  &.saladict-theme-bright::after {
    background-color: #f0f2f5;
    opacity: 1;
  }

  &.saladict-theme-loaded::after {
    transition: opacity 0.4s;
    opacity: 0;
  }

  &.saladict-theme-loading::after {
    opacity: 1;
  }
}

// Fix incorrect antd pagination arrow position on Firefox
@-moz-document url-prefix() {
  .ant-pagination-item-link > .anticon {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
